<?
include ('../sessions.php');
include ('../variables.php');
include('functions.php');
$save_type='MySQL';


$dbh = get_master_connect();

$secret="kuramiqnko";

$data=$HTTP_GET_VARS[data];
$arr=unserialize(base64_decode($data));
$local_check=md5("$secret$arr[method]");
if (!($arr[checksum] == $local_check)) exit("wrong pass");

$method=unserialize(base64_decode($arr[method]));
$result=$method[function_name]($method[params]);
$response=";%;%".base64_encode(serialize($result)).";%;%";
echo $response;

?>
